package com.itboy.mall.pms.spuimages.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * spu图片对象 mall_spu_images
 *
 * @author itboy
 * @date 2021-08-08
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("mall_spu_images")
public class MallSpuImages implements Serializable {

    private static final long serialVersionUID=1L;


    /**
     * id
     */
    @TableId(value = "id")
	@JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * spu_id
     */
	@JsonSerialize(using = ToStringSerializer.class)
    private Long spuId;

    /**
     * 图片名
     */
    private String imgName;

    /**
     * 图片地址
     */
    private String imgUrl;

    /**
     * 顺序
     */
    private Long imgSort;

    /**
     * 是否默认图
     */
    private Integer defaultImg;

}
